package com.qianxx.component.activity.recycleview.ex_refresh_view;

import android.content.Context;
import android.widget.TextView;

import com.qianxx.component.R;
import com.qianxx.viewlibrary.recyclerview.refreshview.RefreshAdapter;
import com.qianxx.viewlibrary.recyclerview.refreshview.adapter.internal.SuperViewHolder;

import java.util.ArrayList;

public class ExRefreshViewAdapter extends RefreshAdapter<String> {

    public ExRefreshViewAdapter(Context context) {
        super(context, new ArrayList<String>(), R.layout.indexable_list_item);
    }

    @Override
    public void onBind(SuperViewHolder holder, int viewType, int position, String item) {
        ((TextView) holder.getView(R.id.text)).setText(item);
    }
}
